# -*- coding: utf-8 -*-
# @Time    : 2022/7/16 19:54
# @Author  : feng
# @Email   : feng@163.com
# @File    : delete_sj_page.py
# @Software: PyCharm
from selenium.webdriver.common.by import By
from pages.login_page import LoginPage
from pages.base_page import BasePage

class DeleteSjPage(BasePage):
    '''进入商机用户信息页面'''
    url='http://192.168.1.5:8081/crm/index.php?m=business&a=view&id=5'
    '''定位器'''
    sc_locator=(By.LINK_TEXT,'删除')

    def click_sc(self):
        self.driver.find_element(*self.sc_locator).click()  #点击删除

    def alert_accept(self):
        self.driver.switch_to.alert.accept()  #弹框确认